//
//  ConversationListViewModel.h
//  MiniWeChat
//
//  Created by ByteDance on 2025/6/25.
//

#import "WXViewModel.h"
#import "ConversationModel.h"
#import "GlobalConstants.h"

NS_ASSUME_NONNULL_BEGIN

@interface ConversationListViewModel : WXViewModel
- (instancetype)initWithUID:(NSString *)uid;

// 通知监听相关
- (void)startNotificationListening;
- (void)stopNotificationListening;

// 聊天会话相关
- (void)fetchConversations;
- (void)markConversationAsReadAtIndex:(NSInteger)index;

// 表格视图相关
- (NSInteger)numberOfConversations;
- (ConversationModel *)conversationAtIndex:(NSInteger)index;

@end

NS_ASSUME_NONNULL_END
